# encoding: utf-8

from django.conf.urls.defaults import patterns, include, url
import shop.settings as settings
from shop.cart.views import *
from shop.cart.forms import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

wizard_initials = { 
    '0': { 'sku' : 'i' }
}

urlpatterns = patterns('',
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), 
    # Examples:
    # url(r'^$', 'shop.views.home', name='home'),
    # url(r'^shop/', include('shop.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     url(r'^admin/', include(admin.site.urls)),
     url(r'^sentry/', include('sentry.web.urls')),
     url(r'^500/', error500, name='e500'),
     #url(r'^flow/select_product/', product, name='p1'),
     url(r'^flow/$', GavinWizard.as_view([ProductForm, ContactForm], initial_dict=wizard_initials, template_name='gavinwizard.html') ),
     url(r'^flow/done/$', done, name='p3'),
     url(r'.*', home),
)
